import {h,render} from 'vue';
import message from './message.vue';
function showMessage (props:any) {
    // 调用h把组件变成组件虚拟domVNode
    const messageVNode = h(message,props)
    //准备好挂载节点
    const el = document.getElementsByTagName('body')[0]
    //渲染虚拟dom到真实dom
    render(messageVNode,el)
    console.log(el,messageVNode,'>>>>>>>555')
}
export default showMessage